home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 30
/
Amiga Format AFCD30 (Sep 1998, Issue 114).iso
/
-seriously_amiga-
/
workbench
/
lfsystembinder
/
examples
/
grabvar.sh
next >
Wrap
Text File
|
1998-06-22
|
601b
|
20 lines
# GrabVar.sh
# © LFSoft 1995
#
# This script for CSH 5.20+ grab variables on tops of env: tree.
#
# LFSystemBinder must run with its default Arexx port "LFSystemBinder.rdv"
#
# Note: This file is quite obsolete (as LFSystemBinder can grab all variables
# since V2.0). It must be considered only as an example of using CSH with
# LFSystemBinder
cd env:
# Read variables but *.prefs
rxsend -l LFSystemBinder.rdv show var
foreach -v var ( ~(*.prefs*) ) \
"if -n -d $var; rxsend -l LFSystemBinder.rdv grab var $var; endif"
# Grab variables ...
cd ~; # Return to the previous CD